All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.apple.alpha.app.FileWrapper

java.lang.Object
   |
   +----com.apple.alpha.core.NativeObject
           |
           +----com.apple.alpha.app.FileWrapper

public class FileWrapper
extends NativeObject
implements Coding
This class wraps the Objective-C class NSFileWrapper.


Constructor Index

 o FileWrapper()
This default constructor is equivalent to Objective-C's [[NSFileWrapper alloc] init].
 o FileWrapper(boolean, int)
Protected constructor used by the bridge to wrap an Objective-C object.
 o FileWrapper(Coder)
This constructor has the same effect as calling - initWithCoder: on a newly allocated object.
 o FileWrapper(Data)
This constructor has the same effect as calling - initWithSerializedRepresentation: on a newly allocated object.
 o FileWrapper(String)
This constructor has the same effect as calling - initWithPath: on a newly allocated object.

Method Index

 o addFileWithPath(String)
A wrapper for the - addFileWithPath: Objective-C instance method.
 o addFileWrapper(FileWrapper)
A wrapper for the - addFileWrapper: Objective-C instance method.
 o addRegularFileWithContents(Data, String)
A wrapper for the - addRegularFileWithContents:preferredFilename: Objective-C instance method.
 o addSymbolicLinkWithDestination(String, String)
A wrapper for the - addSymbolicLinkWithDestination:preferredFilename: Objective-C instance method.
 o encodeWithCoder(Coder)
A wrapper for the - encodeWithCoder: Objective-C instance method defined by the Coding interface (known as the NSCoding Objective-C protocol).
 o fileAttributes()
A wrapper for the - fileAttributes Objective-C instance method.
 o filename()
A wrapper for the - filename Objective-C instance method.
 o fileWrappers()
A wrapper for the - fileWrappers Objective-C instance method.
 o icon()
A wrapper for the - icon Objective-C instance method.
 o isDirectory()
A wrapper for the - isDirectory Objective-C instance method.
 o isRegularFile()
A wrapper for the - isRegularFile Objective-C instance method.
 o isSymbolicLink()
A wrapper for the - isSymbolicLink Objective-C instance method.
 o keyForFileWrapper(FileWrapper)
A wrapper for the - keyForFileWrapper: Objective-C instance method.
 o needsToBeUpdatedFromPath(String)
A wrapper for the - needsToBeUpdatedFromPath: Objective-C instance method.
 o preferredFilename()
A wrapper for the - preferredFilename Objective-C instance method.
 o regularFileContents()
A wrapper for the - regularFileContents Objective-C instance method.
 o removeFileWrapper(FileWrapper)
A wrapper for the - removeFileWrapper: Objective-C instance method.
 o serializedRepresentation()
A wrapper for the - serializedRepresentation Objective-C instance method.
 o setFileAttributes(Dictionary)
A wrapper for the - setFileAttributes: Objective-C instance method.
 o setFilename(String)
A wrapper for the - setFilename: Objective-C instance method.
 o setIcon(Image)
A wrapper for the - setIcon: Objective-C instance method.
 o setPreferredFilename(String)
A wrapper for the - setPreferredFilename: Objective-C instance method.
 o symbolicLinkDestination()
A wrapper for the - symbolicLinkDestination Objective-C instance method.
 o updateFromPath(String)
A wrapper for the - updateFromPath: Objective-C instance method.
 o writeToFile(String, boolean, boolean)
A wrapper for the - writeToFile:atomically:updateFilenames: Objective-C instance method.

Constructors

 o FileWrapper
 protected FileWrapper(boolean shouldAllocate,
                       int objcObject)
Protected constructor used by the bridge to wrap an Objective-C object. It should never be invoked directly.

 o FileWrapper
 public FileWrapper()
This default constructor is equivalent to Objective-C's [[NSFileWrapper alloc] init].

 o FileWrapper
 public FileWrapper(Coder aDecoder)
This constructor has the same effect as calling - initWithCoder: on a newly allocated object.

 o FileWrapper
 public FileWrapper(String path)
This constructor has the same effect as calling - initWithPath: on a newly allocated object.

 o FileWrapper
 public FileWrapper(Data data)
This constructor has the same effect as calling - initWithSerializedRepresentation: on a newly allocated object.

Methods

 o writeToFile
 public native boolean writeToFile(String path,
                                   boolean atomicFlag,
                                   boolean updateFilenamesFlag)
A wrapper for the - writeToFile:atomically:updateFilenames: Objective-C instance method.

 o serializedRepresentation
 public native Data serializedRepresentation()
A wrapper for the - serializedRepresentation Objective-C instance method.

 o setFilename
 public native void setFilename(String filename)
A wrapper for the - setFilename: Objective-C instance method.

 o filename
 public native String filename()
A wrapper for the - filename Objective-C instance method.

 o setPreferredFilename
 public native void setPreferredFilename(String filename)
A wrapper for the - setPreferredFilename: Objective-C instance method.

 o preferredFilename
 public native String preferredFilename()
A wrapper for the - preferredFilename Objective-C instance method.

 o setFileAttributes
 public native void setFileAttributes(Dictionary attributes)
A wrapper for the - setFileAttributes: Objective-C instance method.

 o fileAttributes
 public native Dictionary fileAttributes()
A wrapper for the - fileAttributes Objective-C instance method.

 o isRegularFile
 public native boolean isRegularFile()
A wrapper for the - isRegularFile Objective-C instance method.

 o isDirectory
 public native boolean isDirectory()
A wrapper for the - isDirectory Objective-C instance method.

 o isSymbolicLink
 public native boolean isSymbolicLink()
A wrapper for the - isSymbolicLink Objective-C instance method.

 o setIcon
 public native void setIcon(Image icon)
A wrapper for the - setIcon: Objective-C instance method.

 o icon
 public native Image icon()
A wrapper for the - icon Objective-C instance method.

 o needsToBeUpdatedFromPath
 public native boolean needsToBeUpdatedFromPath(String path)
A wrapper for the - needsToBeUpdatedFromPath: Objective-C instance method.

 o updateFromPath
 public native boolean updateFromPath(String path)
A wrapper for the - updateFromPath: Objective-C instance method.

 o addFileWrapper
 public native String addFileWrapper(FileWrapper doc)
A wrapper for the - addFileWrapper: Objective-C instance method.

 o removeFileWrapper
 public native void removeFileWrapper(FileWrapper doc)
A wrapper for the - removeFileWrapper: Objective-C instance method.

 o fileWrappers
 public native Dictionary fileWrappers()
A wrapper for the - fileWrappers Objective-C instance method.

 o keyForFileWrapper
 public native String keyForFileWrapper(FileWrapper doc)
A wrapper for the - keyForFileWrapper: Objective-C instance method.

 o addFileWithPath
 public native String addFileWithPath(String path)
A wrapper for the - addFileWithPath: Objective-C instance method.

 o addRegularFileWithContents
 public native String addRegularFileWithContents(Data data,
                                                 String filename)
A wrapper for the - addRegularFileWithContents:preferredFilename: Objective-C instance method.

 o addSymbolicLinkWithDestination
 public native String addSymbolicLinkWithDestination(String path,
                                                     String filename)
A wrapper for the - addSymbolicLinkWithDestination:preferredFilename: Objective-C instance method.

 o regularFileContents
 public native Data regularFileContents()
A wrapper for the - regularFileContents Objective-C instance method.

 o symbolicLinkDestination
 public native String symbolicLinkDestination()
A wrapper for the - symbolicLinkDestination Objective-C instance method.

 o encodeWithCoder
 public native void encodeWithCoder(Coder aCoder)
A wrapper for the - encodeWithCoder: Objective-C instance method defined by the Coding interface (known as the NSCoding Objective-C protocol).


All Packages  Class Hierarchy  This Package  Previous  Next  Index